# -*- coding: utf-8 -*-

class PontoControle(object):
    def __init__(self):
        self._flag = '0'
        
    def _set_flag(self, flag):
        self._checa_flag(flag)
        self._flag = flag
        
    def _get_flag(self):
        return self._flag
       
    def _checa_flag(self, flag):
        flag = flag.replace('1','')
        flag = flag.replace('0','')
        if len(flag) > 0:
            raise PontoControleException(flag)
        
    flag = property(_get_flag, _set_flag)
